//
//  LabelAndButtonCollectionReusableView.m
//  14-HomeWork
//
//  Created by dllo on 16/8/2.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "LabelAndButtonCollectionReusableView.h"
@interface LabelAndButtonCollectionReusableView ()

@end
@implementation LabelAndButtonCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(frame) - 150, CGRectGetHeight(frame))];
        _label.text = @"品类";
        _label.textColor = [UIColor colorWithRed:0.87 green:0.87 blue:0.87 alpha:1.00];
        [self addSubview:_label];
        _button = [[UIButton alloc] initWithFrame:CGRectMake(CGRectGetWidth(frame) - 150, 0, 150, CGRectGetHeight(frame))];
        [_button setTitle:@"查看全部>" forState:UIControlStateNormal];
//        _button.backgroundColor = [UIColor redColor];
        [_button setTitleColor:[UIColor colorWithRed:0.87 green:0.87 blue:0.87 alpha:1.00] forState:UIControlStateNormal];
        [self addSubview:_button];
    }
    return self;
}
@end
